package com.bl.feignclient;


import com.bl.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;



// 指定此接口为feign接口，值为调用服务的引用名称
@FeignClient(value = "store-server") //,fallbackFactory = StoreFallbackFactory.class
// 被调用方的一级路径
@RequestMapping("/store")
public interface StoreFeignClient {

    @PutMapping("/add")
   String add(@RequestBody Store store);












}
